<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>网点管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    #parse('/headFiles.html')
</head>
<body>
<div class="layui-form" style="padding: 20px 15px 0 0;" id="layer-photos" wid100>
    <input type="hidden" name="placeId" value="$!{id}"/>
    <input type="hidden" name="areaCode" value="$!{place.areaCode}"/>
    <div class="layui-form-item">
        <label class="layui-form-label">实体店名称:</label>
        <div class="layui-input-block">
            <div class="layui-form-mid">$!{place.name}</div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">实体店地址:</label>
        <div class="layui-input-block">
            <div class="layui-form-mid">$!{place.fullAddress}</div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">省市地区</label>
        <div class="layui-input-block" id="areaCode"></div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮件地址</label>
        <div class="layui-input-block">
            <textarea name="address" autocomplete="off" class="layui-textarea" style="min-height:50px;">$!{address}</textarea>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-sm6">
            <div class="layui-form-item">
                <label class="layui-form-label">联系人</label>
                <div class="layui-input-block">
                    <input type="text" name="receiveName" lay-verify="required" autocomplete="off" class="layui-input"
                           value="$!{receiveName}" placeholder="请输入联系人">
                </div>
            </div>
        </div>
        <div class="layui-col-sm6">
            <div class="layui-form-item">
                <label class="layui-form-label">联系电话</label>
                <div class="layui-input-block">
                    <input type="text" name="receivePhone" lay-verify="required" autocomplete="off" class="layui-input"
                           value="$!{receivePhone}" placeholder="请输入联系电话">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确定">
    </div>
</div>
#parse('/footFiles.html')
<script type="text/javascript">
layui.config({
    base: '$!{webRoot}/layuiadmin/' //静态资源所在路径
}).extend({
    index: 'lib/index' //主入口模块
}).use(['index', 'form', 'selectN', 'upload'], function () {
    var $ = layui.$, selectN = layui.selectN, form = layui.form;

    selectN({
        elem: '#areaCode'
        , name: 'areaCode'
        , search: [true, true]
        , selected: '$!{areaCode}'
        , data: '$!{webRoot}/common/china/area/tree/select.data'
        , field: {
            idName: 'id',
            titleName: 'name',
            statusName: 'status',
            childName: 'children'
        }
    });
});
</script>
</body>
</html>